
// 若路径别名 @ 未正确配置，可尝试使用相对路径
import service from '../utils/axios'


export function loginApi(data: any) {
  
  return service({
    url: '/admin/system/index/login',
    method: 'post',
    data
  });
}


// 获取验证码
export const getValidateCodeApi = () => {
  return service({
    url: "/admin/system/index/generateValidateCode",
    method: 'get'
  })
}



export function logoutApi() {
  return service({
    url: '/admin/system/index/logout',
    method: 'get',

  });
}
